package com.zq.mycloud.auth.service.impl;

import com.zq.mycloud.auth.entity.UserInfo;
import com.zq.mycloud.auth.service.UserService;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.Set;

/**
 * @author ：zhang qiang
 * @package :com.zq.mycloud.auth.service.impl
 * @date ：Created in 2020/11/17 上午9:40
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public UserInfo getUserById(String userId) {
        UserInfo userInfo =new UserInfo();
        userInfo.setUsername("testUserName");
        userInfo.setUserId("testUserId");
        Set<String> roles =new HashSet<>();
        roles.add("testRole");
        userInfo.setRoles(roles);
        return userInfo;
    }
}
